package com.yixin.hospital.service;

import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.Message;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Administrator
* @description 针对表【message(消息通知表)】的数据库操作Service
* @createDate 2024-05-23 15:12:39
*/
public interface MessageService extends IService<Message> {

    ApiResult<?> userMessageType(Long userId);

    ApiResult<?> userMessageByType(int currentPage, int pageSize, String messageType, Long userId);

    ApiResult<?> messageRead(Long id, String name);

    ApiResult<?> messageAllRead(Long userId);
}
